/**
 * @file
 * @author  Tsin Smith <tsin.creator@gmail.com>
 *
 * @section DESCRIPTION
 *
 */

#ifndef __TSIN_LIBRARY_BULLETLINEPLACER_HPP__
#define __TSIN_LIBRARY_BULLETLINEPLACER_HPP__

#include <tsin/library/common.hpp>
#include <tsin/library/BulletPlacer.hpp>

namespace tsin {

        class LIBRARY_DLLEXPORT BulletLinePlacer : public BulletPlacer {
        public:
                void init(float startX, float startY, float angle, float interval);
                virtual void reinit();

                virtual void reset();
                virtual void place(BulletRuntime *bullet, void *data);

        private:
                int count;
                float x, y;
                float angle, interval;
        };

}

extern "C" LIBRARY_DLLEXPORT tsin::DynamicObject *bindLinePlacer();

#endif /* __TSIN_LIBRARY_BULLETLINEPLACER_HPP__ */
